package com.searchlist.skiplist;

public class SkipListRow
{
	private SkipListNode firstNode;
	private SkipListNode lastNode;
	
	public SkipListRow()
	{
		this.setFirstNode(new SkipListNode("minInfinite"));
		this.setLastNode(new SkipListNode("infinite", null, firstNode));
		firstNode.setNextNode(lastNode);
	}
	
	public SkipListNode getFirstNode()
	{
		return this.firstNode;
	}
	
	public void setFirstNode(SkipListNode firstNode)
	{
		this.firstNode = firstNode;
	}
	
	public SkipListNode getLastNode()
	{
		return this.lastNode;
	}
	
	public void setLastNode(SkipListNode lastNode)
	{
		this.lastNode = lastNode;
	}
}